@namespace AntDesign
@inherits AntDomComponentBase

<CascadingValue Value="this" IsFixed="@true">
    <button class="@ClassMapper.Class" style="@(this.Danger ? this._btnWave + Style:Style)" id="@Id" type="@HtmlType" @ref="@Ref"
            @onclick="HandleOnClick" disabled="@Disabled"
            @onclick:stopPropagation="@OnClickStopPropagation"
            @onmouseup="OnMouseUp"
            ant-click-animating-without-extra-node="@(this._animating ? "true":"false")">
        @if (Loading)
        {
            <Icon Type="loading"></Icon>
        }
        @if (!string.IsNullOrEmpty(Icon))
        {
            <Icon Type="@Icon" Style="@IconStyle"></Icon>
        }

        @ChildContent
    </button>
</CascadingValue>
